This customization shows how to set the page size programmatically in a
show table page.
Variables
Table Control Class
Select the table control where this customization will be included
Applies to
TableControl class
Code
///
/// Set the pagination size programmatically in the MyInit method
///
protected void MyInit(object sender, System.EventArgs e)
{
if (!this.Page.IsPostBack)
{
// Set the new pagination size for the table
this.PageSize = 20;
}
}
Applies to
CSharpTableControlConstructor class
Code
// The following line will be inserted inside the
// constructor for table control class.
this.Init += new System.EventHandler(this.MyInit);